{capture name="hidden"}	
{/capture}
{capture name="fields"}
{literal}
	<script type="text/javascript">
	function removeids(id){
		top.opener.window.document.forms['child_list']['copys'].value='1';
		top.opener.window.document.forms['child_list']['parent'].value=id;
		top.opener.window.document.forms['child_list']['act'].value='rem';
		top.opener.window.document.forms['child_list'].submit();
		window.close();
	}
	</script>
{/literal}

 	<style type="text/css">
	{literal}
	.pages-item {
		padding: 5px 0; border-top: 1px solid #FFFFFF; border-bottom: 1px solid #D6DBDE;
	}
	.pages-item a {
	  background: url('_tvs_system_core_/design/img/document_copy.gif') no-repeat left center; padding: 5px 0 5px 16px;
	}
	{/literal}
	</style>

	<div class="pages-item" style="padding-left: {if $width}{$width}{else}7{/if}px;">
		<a href="javascript:void(0);" onClick="removeids(0);" class="blackUnderline">{t t='Pradžia'}</a>
	</div>
	{foreach from=$tree item="el"}		
	{math equation="x * y" x=20 y=$el.depth assign="width"}
	<div class="pages-item" style="padding-left: {if $width}{$width}{else}7{/if}px;">
	<a href="javascript:void(0);" {if $el.id != $smarty.get.parent} onClick="removeids({$el.id});"{/if} class="blackUnderline" {if $el.id == $smarty.get.parent}style="color:#999999"{/if}>{$el.name}</a>
	</div>
	{/foreach}
{/capture}


